function closeMingJingDialog() {
    // 创建前首先检查，是否已经存在相同id的弹窗
    const id = "";
    const selector = id ? `.widget-dialog-render-class[id="${id}"]` : ".widget-dialog-render-class";
    const domls = document.querySelectorAll(selector);
    try {
        if (domls && domls.length) {
            for (let index = 0; index < domls.length; index++) {
                const element = domls[index];
                if (element && element.parentNode && element.parentNode.removeChild) {
                    element.parentNode.removeChild(element);
                }
            }
        }
    } catch (err) {
        console.warn("清除旧弹窗时发生异常：", err);
    }
}



